import React, { Component } from 'react';
import {  Table } from 'antd';

class FieldTable  extends Component {
    constructor(props) {
      super(props);
    }

    render() {
      return (
        <Table
          rowKey="id"
          dataSource={this.props.data}
          columns={this.props.columns}
          style={{ marginTop: 10}}
          pagination={false}
          bordered
          algin="left"
        />
      )
  }
}

export default FieldTable;
